package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_HDQRZT"
 *     
*/
public class DmHdqrzt implements Serializable {

    /** identifier field */
    private String hdqrztDm;

    /** persistent field */
    private String hdqrztMc;

    /** full constructor */
    public DmHdqrzt(String hdqrztDm, String hdqrztMc) {
        this.hdqrztDm = hdqrztDm;
        this.hdqrztMc = hdqrztMc;
    }

    /** default constructor */
    public DmHdqrzt() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="HDQRZT_DM"
     *         
     */
    public String getHdqrztDm() {
        return this.hdqrztDm;
    }

    public void setHdqrztDm(String hdqrztDm) {
        this.hdqrztDm = hdqrztDm;
    }

    /** 
     *            @hibernate.property
     *             column="HDQRZT_MC"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getHdqrztMc() {
        return this.hdqrztMc;
    }

    public void setHdqrztMc(String hdqrztMc) {
        this.hdqrztMc = hdqrztMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("hdqrztDm", getHdqrztDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmHdqrzt) ) return false;
        DmHdqrzt castOther = (DmHdqrzt) other;
        return new EqualsBuilder()
            .append(this.getHdqrztDm(), castOther.getHdqrztDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getHdqrztDm())
            .toHashCode();
    }

}
